import request from "@/utils/request";


//忻州公司入口治超轴重异常数据日报对象
export function listAbnormal(query) {
  return request({
    url: "/abnormal/list",
    method: "get",
    params: query,
  });
}
// 新增
export function addAbnormal(data) {
  return request({
    url: "/abnormal",
    method: "post",
    data: data,
  });
}

// 修改
export function updateAbnormal(data) {
  return request({
    url: "/abnormal",
    method: "put",
    data: data,
  });
}

// 删除
export function delAbnormal(id) {
  return request({
    url: "/abnormal/" + id,
    method: "delete",
  });
}



// 高速公路出口疑似违法超限运输信息汇总对象查询
export function listIllegal(query) {
  return request({
    url: "/illegal/list",
    method: "get",
    params: query,
  });
}
// 新增
export function addIllegal(data) {
  return request({
    url: "/illegal",
    method: "post",
    data: data,
  });
}
// 修改
export function updateIllegal(data) {
  return request({
    url: "/illegal",
    method: "put",
    data: data,
  });
}

// 删除
export function delIllegal(id) {
  return request({
    url: "/illegal/" + id,
    method: "delete",
  });
}


// 岀口疑似违法超限运输车辆移交信息汇总对象
export function listHandover(query) {
  return request({
    url: "/handover/list",
    method: "get",
    params: query,
  });
}
// 新增
export function addHandover(data) {
  return request({
    url: "/handover",
    method: "post",
    data: data,
  });
}


// 修改
export function updateHandover(data) {
  return request({
    url: "/handover",
    method: "put",
    data: data,
  });
}

// 删除
export function delHandover(id) {
  return request({
    url: "/handover/" + id,
    method: "delete",
  });
}


export function getTransportDetail(query) {
  return request({
    url: "/webService/getTransportDetail",
    method: "get",
    params: query,
  });
}

export function getOverLoadDetail(query) {
  return request({
    url: "/webService/getOverLoadDetail",
    method: "get",
    params: query,
  });
}
